from .models import Log


class MyLogger():
    def info(self, data):
        Log.objects.create(
            log_type='INFO',
            content=data
        )

    def debug(self, data):
        Log.objects.create(
            log_type='DEBUG',
            content=data
        )

    def error(self, data):
        Log.objects.create(
            log_type='ERROR',
            content=data
        )


logger = MyLogger()
